<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Web application to give feedback to companies 
managers so customer experience could improve">
<meta name="keywords" content="customer, feedback, net promoter score, nps, best companies, best restaurants">
<meta name="author" content="Markus Karileet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/style.css" title="TellUs"
    media="screen,projection">
    
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/jquery-ui-1.10.3.custom.css">
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/smartpaginator.css">
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery.raty.min.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/javascript.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/monthpicker.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/smartpaginator.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery.dropdownPlain.js"></script>
<title>{$lang['title']}</title>
{if isset($business)}
{assign var=loc value=$business->getAddress()}
{else}
{assign var=loc value='Tallinn'}
{/if}
<script type="text/javascript">
var prefix = '{$smarty.const.WEBROOT}';
var passwordsMatchAlert = "{$lang['passwordsMatchAlert']}";
var insertPasswordsAlert = "{$lang['insertPasswordsAlert']}";
var problemWithFeedback = "{$lang['problemWithFeedback']}";
var problemWithRegister = "{$lang['problemWithRegister']}";
var areYouSureTxt = "{$lang['confirmComDelete']}";
var adr = '{$loc}';
var pleaseInsertReason = "{$lang['pleaseInsertReason']}";
var thankYouForInfo = "{$lang['thankYouForInfo']}";
</script>
<script type="text/javascript"
	src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDV5HgzAVvdrAYlKKgTQyqXJZDotdY_OUY&sensor=false">
</script>
	{literal}
	<script type="text/javascript">
      function initialize() {
    	var geocoder = new google.maps.Geocoder();
        var mapOptions = {
          zoom: 15,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("map-canvas"),
            mapOptions);
        geocoder.geocode({
            address : adr
        }, function(results, status) {
            if(status == google.maps.GeocoderStatus.OK) {
                map.setCenter(results[0].geometry.location);
                new google.maps.Marker({
                    map : map,
                    position : results[0].geometry.location
                });
            } else {
                alert("Geocode was not successful for the following reason: " + status);
            }

        });
      }
      
      google.maps.event.addDomListener(window, 'load', initialize);
</script>
	{/literal}
</head>
<body>
{literal}
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-42658763-1', 'planet.ee');
  ga('send', 'pageview');
</script>
{/literal}
    <div id="wrap">
        <div id="header">            
            <div class="toplinkDiv" style="padding:4px 8px;border:1px solid #fff">
                <a href="&L=et">est</a> | <a href="&L=en">eng</a>
            </div><div class="toplinkDiv" style="padding:4px 8px;border:1px solid #fff">
                {if isset($loggedUser) && $loggedUser}
                    <a href="{$smarty.const.WEBROOT}/?action=logout">{$lang['logout']}</a>
                {else}
                    <a href="{$smarty.const.WEBROOT}/signin/">{$lang['login']}</a>
                {/if}
            </div>
            {if isset($loggedUser) && $loggedUser}
	        	<div class="toplinkDiv">
	        	<div style="float:left;padding:4px 8px;border:1px solid #fff">
	        		{$lang['loggedInAs']}:</div>
	        		<div style="float:left;">
        		    <ul class="dropdown">
			        	<li><a href="#">{$loggedUser->getName()} &darr;</a>
			        		<ul class="sub_menu">
			        		    <li><a href="{$smarty.const.WEBROOT}/editUser/{$loggedUser->getId()}/">{$lang['editAccount']}</a></li>
			        		    {if isset($company) && $company}
			        			 {foreach from=$company item=c}
								<li><a href="{$smarty.const.WEBROOT}/companyDetails/{$c->getId()}/">{$c->getName()}</a></li>
								{/foreach}
								{/if}
			        		</ul>
			        	</li>
		        	</ul>
		        	</div>
	            </div>
            {/if}
            <!-- 
            <h1>
                <a href="{$smarty.const.WEBROOT}/">Tell<span class="fade">Us</span></a>
            </h1>
            <p id="slogan">{$lang['contactTheManager']}</p>
             -->
             <a href="{$smarty.const.WEBROOT}/">
             <img src="{$smarty.const.WEBROOT}/lib/design/img/tabletalk.jpg" class="left photo" style="margin: 10px 0 10px 27px;border:0px;"/>
             </a>
        </div>
        <div class="inner_copy"></div>
        <div id="content">
        	{if $messages} 
				<div id="message" onClick="$(this).hide('slow')">
					{foreach from=$messages key=type item=msg}
						<div class="{$type}">{$msg}</div>
					{/foreach}
				</div>
			{/if}
            {$content}
        </div>
        <div id="sidebar">
        	{$vNav}
        </div>
        <div id="footer">
        	{$footer}
        </div>
    </div>


</body>
</html>